import request from '@/utils/http'

export function list(params) {
    return request({
      url: 'question/list',
      method: 'get',
      params
    })
  }

export function add(data) {
    return request({
      url: 'question/addQuestion',
      method: 'post',
      data
    })
}

export function del(id) {
    return request({
      url: `question/delQuestion/${id}`,
      method: 'post',
    })
}

export function update(id,data) {
    return request({
      url: `question/update/${id}`,
      method: 'post',
      data
    })
}
